package hsp.admin.app.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import hsp.admin.app.system.mapper.CodeMapper;
import hsp.admin.app.system.po.CodePO;
import hsp.admin.app.system.service.ICodeService;
import hsp.admin.app.system.info.CodeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CodeServiceImpl extends ServiceImpl<CodeMapper, CodePO> implements ICodeService {

    private final CodeMapper mapper;

    @Autowired
    public CodeServiceImpl(
        CodeMapper mapper
    ){
        this.mapper = mapper;
    }

    @Override
    public List<CodeInfo> fetchCodeInfo() {
        return mapper.selectCodeInfo();
    }

}
